<template>
  <div>
    <el-card shadow="hover">
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '' + $route.path }">
          {{ $router.options.routes[currentNavIndex].name }}</el-breadcrumb-item
        >

        <span
          :key="index"
          v-for="(item, index) in $router.options.routes[currentNavIndex]
            .children"
        >
          <el-breadcrumb-item v-if="$route.path == item.path">
            <a href="#">{{ item.name }}</a>
          </el-breadcrumb-item>
        </span>
      </el-breadcrumb>
    </el-card>
  </div>
</template>

<script>
export default {
  props: {
    currentNavIndex: String,
  },
  components: {},
};
</script>

<style lang="scss">
@import "../../assets/css/global.scss";
</style>